package com.eshore.ezone.downloads;

import android.content.Context;

import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;

public class FileDownloader extends AbstractFileDownloader {
    private static final String FILE_PATH = "XXX";
    private static final String FILE_NAME = "XXX";
    private final Context mContext;
    
    public FileDownloader(Context context) {
        mContext = context;
    }

    @Override
    protected void loadConfigs() {
        setFilePath(FILE_PATH);
        setFileName(FILE_NAME);
    }

    @Override
    protected InputStream downloadFile(String url) {
        // TODO Auto-generated method stub
        return null;
    }

    @Override
    protected void saveFile(String fileName) throws IOException {
        mContext.openFileOutput(fileName, 0);
    }

    @Override
    protected boolean streamFile(InputStream in, FileOutputStream os) {
        // TODO Auto-generated method stub
        return false;
    }
}
